home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / earcd / patches / pgs3h21.lha / 3.0h2Update / Install-PageStream3.0h2 < prev    next >
Text File  |  1995-10-15  |  10KB  |  262 lines

  1. ;PAGESTREAM 3.0h2 ONLINE UPDATE PATCH INSTALLATION SCRIPT
  2. ;COPYRIGHT ©1995 SOFT-LOGIK PUBLISHING CORPORATION
  3.  
  4. ;QUIT PROGRAMS
  5. (message "\n\nIf PageStream3, BME2 or PageLiner are running now, quit them before continuing.")
  6. (run "avail flush" (safe))
  7.  
  8. ;USE ASSIGNS TO AVOID THE STUPID INSTALLER'S CRASH BUG
  9. (run "CD PageStream3:" (safe))
  10. (run "CD SoftLogik:" (safe))
  11. (run "assign fonts: softlogik:fonts add" (safe))
  12.  
  13. ;TEST TO SEE IF THEY HAVE PGS3H22.LHA
  14. (if (<> (exists "PGSpatch.LHA") 1)
  15.     (abort "You did not download the PGS3H22.LHA archive. Download it and decompress it to the same directory as you decompressed this archive before continuing.")
  16. )
  17.  
  18. ;GET DESTINATION
  19. (set PGSdest (getassign "PageStream3" "a"))
  20. (set SLdest (getassign "SoftLogik" "a"))
  21. (if (OR (= PGSdest "") (= SLdest ""))
  22.     (abort "PageStream3: and/or SoftLogik: are not assigned. You must properly install PageStream3 before applying this update patch.")
  23. )
  24. (set @default-dest PGSdest)
  25.  
  26. ;MAKE REQUIRED DIRECTORIES IF THEY DON'T EXIST
  27. (if (<> (exists "PageStream3:PageStream3") 1)
  28.     (abort "PageStream3 is not in the PageStream3: directory. You must properly install PageStream3 before applying this update patch.")
  29. )
  30. (if (<> (exists "SoftLogik:Engines") 2) (makedir "SoftLogik:Engines" (infos)))
  31. (if (<> (exists "SoftLogik:Libs") 2) (makedir "SoftLogik:Libs" (infos)))
  32. (if (<> (exists "SoftLogik:Printers") 2) (makedir "SoftLogik:Printers" (infos)))
  33. (if (<> (exists "SoftLogik:Filters") 2) (makedir "SoftLogik:Filters" (infos)))
  34. (if (<> (exists "SoftLogik:Effects") 2) (makedir "SoftLogik:Effects" (infos)))
  35. (if (<> (exists "PageStream3:Help") 2) (makedir "PageStream3:Help" (infos)))
  36. (if (<> (exists "PageStream3:Macros") 2) (makedir "PageStream3:Macros" (infos)))
  37. (if (<> (exists "PageStream3:Macros/TextClips") 2) (makedir "PageStream3:Macros/TextClips" (infos)))
  38. (if (<> (exists "PageStream3:Documents") 2) (makedir "PageStream3:Documents" (infos)))
  39.  
  40. ;COPY THE LHEX PROGRAM TO RAM:
  41. (copyfiles (source "PageStream3Disk1:lhex") (dest "ram:") (nogauge))
  42.  
  43. ;SEE WHAT THE USER WANTS TO INSTALL
  44. (set ALLflag 0)
  45. (set SMAflag 1)
  46.  
  47. (message ("\n\nThis patch will update your PageStream3.0h hard drive installation to version 3.0h2.\n\nYour original PageStream3 disks will not be modified by this update.\n\nYou MUST have 3.0h installed to use this patch."))
  48. (set install_mode
  49.     (askchoice
  50.         (prompt
  51.             "\nSelect an installation option.\n\nChoose `ALL' if you have a full PageStream3 installation. Choose `ONLY' if you have a custom or minimum PageStream3 installation.\n")
  52.         (choices "Install ALL improved files" "Update ONLY the currently installed files")
  53.         (default 0)
  54.         (help
  55.             "\n\nThe ONLY option will check to see if a file exists before copying the new one to your hard drive. Thus, if you deleted the HP.printer driver because you didn't need it, the new one will not be installed.")
  56.     )
  57. )
  58.  
  59.  
  60. ;UPDATE LIBS
  61. (working "Installing Updated Libraries...")
  62. (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Libs x Libs.lha")
  63. (delete "Libs.LHA" (safe))
  64.  
  65. ;UPDATE TIPS
  66. (run "ram:lhex >NIL: <NIL: -qfw=PageStream3:Help x Tips.LHA")
  67. (delete "Tips.LHA" (safe))
  68.  
  69. ;UPDATE PRINTER DRIVERS
  70. (working "Installing Updated Printer Drivers...")
  71. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/PostScript.printer"))
  72.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x PrinterPS.LHA")
  73. )
  74. (delete "PrinterPS.LHA" (safe))
  75.  
  76. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/HP.printer"))
  77.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x PrinterHP.LHA")
  78. )
  79. (delete "PrinterHP.LHA" (safe))
  80.  
  81. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/Epson.printer"))
  82.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x PrinterEP.LHA")
  83. )
  84. (delete "PrinterEP.LHA" (safe))
  85.  
  86. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/IFFILBM.printer"))
  87.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x PrinterIF.LHA")
  88. )
  89. (delete "PrinterIF.LHA" (safe))
  90.  
  91. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/Preference.printer"))
  92.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x PrinterPR.LHA")
  93. )
  94. (delete "PrinterPR.LHA" (safe))
  95.  
  96. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Printers/Fargo.printer"))
  97.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Printers x PrinterFA.LHA")
  98. )
  99. (delete "PrinterFA.LHA" (safe))
  100.  
  101. ;UPDATE ENGINES
  102. (working "Installing Updated Engines...")
  103. (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Engines x Engines.lha")
  104. (delete "Engines.LHA" (safe))
  105.  
  106. ;UPDATE FILTERS
  107. (working "Installing Updated Filters...")
  108. (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x Filters.lha")
  109. (delete "Filters.LHA" (safe))
  110.  
  111. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/Wordworth.tfilter"))
  112.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterWW.lha")
  113. )
  114. (delete "FilterWW.LHA" (safe))
  115.  
  116. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/ArtExpression.gfilter"))
  117.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterAE.lha")
  118. )
  119. (delete "FilterAE.LHA" (safe))
  120.  
  121. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/ProPage.dfilter"))
  122.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterPP.lha")
  123. )
  124. (delete "FilterPP.LHA" (safe))
  125.  
  126. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/PCX.gfilter"))
  127.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterPC.lha")
  128. )
  129. (delete "FilterPC.LHA" (safe))
  130.  
  131. (if (OR (= install_mode ALLflag) (exists "SoftLogik:Filters/TIFF.gfilter"))
  132.     (run "ram:lhex >NIL: <NIL: -qfw=SoftLogik:Filters x FilterTI.lha")
  133. )
  134. (delete "FilterTI.LHA" (safe))
  135.  
  136. ;UPDATE HELP
  137. (if (exists "PageStream3:Help/PGS.HEL")
  138.     (run "ram:lhex >NIL: <NIL: -qfw=PageStream3:Help x Help.LHA")
  139. )
  140. (delete "Help.LHA" (safe))
  141.  
  142. ;UPDATE MACROS
  143. (if (exists "PageStream3:Macros/PageStream3.macros.bak")
  144.     (delete "PageStream3:Macros/PageStream3.macros.bak")
  145. )
  146. (if (exists "PageStream3:Macros/PageStream3.macros")
  147.     (rename "PageStream3:Macros/PageStream3.macros" "PageStream3:Macros/PageStream3.macros.bak")
  148. )
  149. (working "Installing Updated Macros...")
  150. (run "ram:lhex >NIL: <NIL: -qfw=PageStream3:Macros x Macros.lha")
  151. (delete "Macros.LHA" (safe))
  152. (if (exists "PageStream3:Macros/PageStream3.macros.bak")
  153.     (message "\nYour PageStream3.macros file has been renamed to PageStream3.macros.bak. If you have added your own macros to PageStream3, you will need to append them to the new macros file.\n\nRefer to page 339 for more information.")
  154. )
  155.  
  156.  
  157. ;UPDATE PAGELINER2
  158. (if (exists "PageStream3:PageLiner")
  159.     (
  160.         (working "Patching PageLiner to 2.0f...")
  161.         (run "ram:lhex >NIL: <NIL: -qfw=ram: x PLpatch.LHA")
  162.         (run "spatch >NIL: <NIL: -oPageStream3:PageLiner2.0f -pram:PageLiner.pch PageStream3:PageLiner")
  163.         (if (exists "PageStream3:PageLiner2.0f")
  164.             (
  165.                 (delete "PageStream3:PageLiner")
  166.                 (rename "PageStream3:PageLiner2.0f" "PageStream3:PageLiner")
  167.             )
  168.             (message "\nThe patch to PageLiner was not successful. Refer to the Read.1st! file for further instructions.")
  169.         )
  170.         (delete "ram:PageLiner.pch" (safe))
  171.     )
  172. )
  173. (delete "PLpatch.LHA" (safe))
  174.  
  175. ;UPDATE BME2
  176. (if (exists "PageStream3:BME")
  177.     (
  178.         (working "Patching BME to 2.0d...")
  179.         (run "ram:lhex >NIL: <NIL: -qfw=ram: x BMEpatch.LHA")
  180.         (run "spatch >NIL: <NIL: -oPageStream3:BME2.0d -pram:BME.pch PageStream3:BME")
  181.         (if (exists "PageStream3:BME2.0d")
  182.             (
  183.                 (delete "PageStream3:BME")
  184.                 (rename "PageStream3:BME2.0d" "PageStream3:BME")
  185.             )
  186.             (message "\nThe patch to BME was not successful. Refer to the Read.1st! file for further instructions.")
  187.         )
  188.         (delete "ram:BME.pch" (safe))
  189.     )
  190. )
  191. (delete "BMEpatch.LHA" (safe))
  192.  
  193. ;UPDATE PAGESTREAM3
  194. (working "Patching PageStream to 3.0h2...\n\nThis will take from one to five minutes.")
  195. (run "ram:lhex >NIL: <NIL: -qfw=ram: x PGSpatch.LHA")
  196. (delete "PGSpatch.LHA" (safe))
  197. (run "spatch >NIL: <NIL: -oPageStream3:PageStream3.0h2 -pram:PageStream.pch PageStream3:PageStream3")
  198. (if (exists "PageStream3:PageStream3.0h2")
  199.         (
  200.                 (delete "PageStream3:PageStream3")
  201.                 (rename "PageStream3:PageStream3.0h2" "PageStream3:PageStream3")
  202.         )
  203.         (abort "The patch to PageStream3 was not successful. Refer to the Read.1st! file for instructions.")
  204. )
  205. (delete "ram:PageStream.pch" (safe))
  206.  
  207. ;PATCH EXTRAS TO LATEST VERSION IF APPLICABLE
  208.  
  209. (run "ram:lhex >NIL: <NIL: -qfw=ram: x XTpatch.LHA")
  210. (set TTsize (getsize "SoftLogik:Engines/TTF.font"))
  211. (set WWsize (getsize "SoftLogik:Filters/Wordworth.dfilter"))
  212. (if (= TTsize 36704)
  213.     (
  214.         (working "Updating TrueType font engine to the latest version...")
  215.         (run "ram:spatch -oram:TTF.font -pram:TTF.pch SoftLogik:Engines/TTF.font")
  216.         (set TTsize (getsize "ram:TTF.font"))
  217.         (if (= TTsize 37176)
  218.             (copyfiles (source "ram:TTF.font") (dest "SoftLogik:Engines"))
  219.             (message "Could not update TrueType font engine.\n\nEmail technical support at tech@slpc.com for installation assistance.")
  220.         )
  221.     )
  222. )
  223. (if (= WWsize 33256)
  224.     (
  225.         (working "Updating Wordworth Document Filter to the latest version...")
  226.         (run "ram:spatch -oram:Wordworth.dfilter -pram:Wordworth.pch SoftLogik:Filters/Wordworth.dfilter")
  227.         (set WWsize (getsize "ram:Wordworth.dfilter"))
  228.         (if (= WWsize 34760)
  229.             (copyfiles (source "ram:Wordworth.dfilter") (dest "SoftLogik:Filters"))
  230.             (message "Could not update Wordworth document filter.\n\nContact Soft-Logik for installation assistance.")
  231.         )
  232.     )
  233. )
  234. (delete "XTpatch.LHA" (safe))
  235. (delete "ram:TTF.pch" (safe))
  236. (delete "ram:TTF.font" (safe))
  237. (delete "ram:Wordworth.pch" (safe))
  238. (delete "ram:Wordworth.dfilter" (safe))
  239.  
  240. ;INSTALL SAMPLE TEXTFX DOC
  241. (run "ram:lhex >NIL: <NIL: -qfw=PageStream3:Documents x TextFXdoc.LHA")
  242. (delete "TextFXdoc.LHA" (safe))
  243.  
  244. ;DISPLAY README (Try 3 different ways!)
  245. (run "ram:lhex >NIL: <NIL: -qfw=PageStream3: x Read.LHA")
  246. (delete "Read.LHA" (safe))
  247. (IF (> (run "Sys:Utilities/MultiView PageStream3:ReadMe.Now") 0)
  248.         (IF (> (run "Sys:Utilities/AmigaGuide PageStream3:ReadMe.Now") 0)
  249.                 (run "More PageStream3:ReadMe.Now")
  250.         )
  251. )
  252.  
  253. ;REMOVE THE LHEX PROGRAM
  254. (delete "ram:lhex" (safe))
  255. (delete "spatch" (safe))
  256. (delete "Install-PageStream3.0h2.info" (safe))
  257.  
  258. (message "NEW!\n\nThe new TextFX extension for PageStream3 allows you to warp text in shapes and bend it on curves! Now available separately for $50. ($40 for owners of Art Expression.)\n\nCall 1-800-829-8608 (314-256-9595) to order!")
  259.  
  260. ;FINALLY DONE
  261. (exit "PageStream 3.0h2 installed!")
  262.